package com.yami.shop.user.common.task;

import com.yami.shop.bean.param.CustomerManagerParam;
import com.yami.shop.common.util.PageParam;
import com.yami.shop.service.UserService;
import lombok.AllArgsConstructor;

import java.util.List;
import java.util.concurrent.Callable;

@AllArgsConstructor
public class ListCustomerExportDataTask implements Callable<List<CustomerManagerParam>> {

    private UserService userService;
    private CustomerManagerParam param;
    private PageParam<CustomerManagerParam> pageParam;

    @Override
    public List<CustomerManagerParam> call() throws Exception {
        return userService.pageCustomerByMultiShop(pageParam, param).getRecords();
    }
}
